<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC 	"-//W3C//DTD XHTML 1.0 Transitional//EN"
						"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core">
	<f:view locale="#{facesContext.externalContext.request.locale}">
	<f:loadBundle basename="texte.Info" var="vhtexte" />
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="stylesheet" type="text/css" href="#{resource['css:dokument.css']}" />
		<title><h:outputText value="#{vhtexte.registrierenTitel}"/></title>
	</h:head>
	<h:body>
		<h:outputStylesheet name="fonts.css"/>
		<p>
		<h:form id="registerForm">
			<p>
			<h:outputText value="#{vhtexte.welcome}" styleClass='headline' /><br /><br />
			<h:outputText value="#{vhtexte.register}" styleClass='subhead' /><br />
			
			<h:panelGrid columns="2" border="0" cellpadding="0">
			<h:panelGroup>
			<h:outputText value="#{vhtexte.nick}" />*:
			</h:panelGroup>
			<h:panelGroup>
				<h:inputText id="nickname" maxlength="15" size="15"
						value="#{registerBean.nickname}"
						validator="#{registerBean.validateNickname}"
						required = "true">
						<f:validateLength 
	                         minimum="3" maximum="20"/>
				</h:inputText><h:message for="nickname" style="color: red"/><br />
			</h:panelGroup>
			<h:panelGroup>
				<h:outputText value="#{vhtexte.passwort}"/>*: 
			</h:panelGroup>
			<h:panelGroup>
				<h:inputSecret id="password" maxlength="15" size="15"
						value="#{registerBean.password}"
						validator="#{registerBean.validatePassword}"
						required = "true">
						<f:validateLength 
	                         minimum="3" maximum="20"/>
				</h:inputSecret><h:message for="password" style="color: red"/><br />
			</h:panelGroup>
			<h:panelGroup>
				<h:outputText value="#{vhtexte.pwWiederholen}"/>*: 
			</h:panelGroup>	
			<h:panelGroup>
				<h:inputSecret id="passwordRepeat" maxlength="15" size="15"
						value="#{registerBean.passwordRepeat}"
						validator="#{registerBean.validatePasswordRpd}"
						required = "true">
						<f:validateLength 
	                         minimum="3" maximum="20"/>
				</h:inputSecret><h:message for="passwordRepeat" style="color: red"/><br />
			</h:panelGroup>
			<h:panelGroup>
				<h:outputText value="#{vhtexte.name2}" />:
			</h:panelGroup>
			<h:inputText id="name" maxlength="15" size="15"
						value="#{registerBean.name}">
			</h:inputText>
			<h:panelGroup>
				<h:outputText value="#{vhtexte.email}"/>:
			</h:panelGroup>
			<h:inputText id="email" maxlength="15" size="15"
						value="#{registerBean.email}">
					</h:inputText>
			<h:panelGroup>
			<i><h:outputText value="#{vhtexte.pflicht}"/></i><br />
			</h:panelGroup>
			<h:outputText value=""></h:outputText>
			
			<h:commandButton 	styleClass="senden"
								action="#{registerBean.register}"
								value="#{vhtexte.regBtn}" >
								<f:param name="pwRepeatFailure" value = "false"/>
								<f:param name="userExistFailure" value = "false"/>
								<f:param name="dbFailure" value = "false"/>								
			</h:commandButton>
			</h:panelGrid>
			</p>
			<br />
		</h:form>
		</p>
		<p>
			<b>- <h:outputLink value="login.xhtml">
				<h:outputText value="#{vhtexte.loginTitel}"/>
			</h:outputLink></b>
		</p>
	</h:body>
	</f:view>
</html>